Passing Promiscous interface through to a Snap Instance

I am trying to pass through an interface through into a snap as part of zeek sensor build. I am able to get the standard eth0 which allows the snap to download and access the required files for zeek however my appliance has second interface I would like to pass through. I have a feeling its tied directly to how lxd manages the interfaces but I don’t know how to reflect that in the snap config.

Any help would be much appreciated.

Hi, can you please provide more details, a snapcraft.yaml you have perhaps can also take us a long way.

Hi, I have attached the current version of the yaml I am working on below:

name: zeek
base: core22
version: '0.4.1'
summary: Zeek sensor Snap
description: |
  Zeek install for Mikrotik 2 interface appliances
grade: devel
confinement: classic

slots:
   mirror-port:
      interface: custom-device
      custom-device: mirror-port-device
      devices:
#        - /sys/devices/pci0000:00/0000:00:1c.3/0000:04:00.0/net/enp4s0
        - /sys/class/net/enp4s0
parts:
   zeek-parts:
       plugin: nil
       stage:
       - -opt
       override-build: |
           echo 'deb http://download.opensuse.org/repositories/security:/zeek/xUbuntu_22.04/ /' | tee /etc/apt/sources.list.d/security:zeek.list
           curl -fsSL https://download.opensuse.org/repositories/security:zeek/xUbuntu_22.04/Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/security_zeek.gpg > /dev/null
           apt update
           apt install zeek-lts
#           echo "export PATH=\"/opt/zeek/bin:$PATH\"" >> ~/.bashrc
plugs:
  mirrot-port:
    interface: custom-device
    custom-device: mirror-port-device


apps:
   zeek:
     command: opt/zeek/bin/zeekctl
     plugs:
       - bluetooth-control
       - firewall-control
       - network-control
       - hardware-observe
       - home
       - removable-media
       - mount-control
       - microstack-support
       - system-backup