diff options
| author | l0crian1 <143656816+l0crian1@users.noreply.github.com> | 2025-10-02 17:52:06 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-02 23:52:06 +0200 |
| commit | 31d0ac632882e0faf8334823acc0a29147d22cc0 (patch) | |
| tree | ee02ae237354310e3dfd3e51bad8615c78579c09 /interface-definitions | |
| parent | 3a5947fb673aaabcd79967ce08d04b6785f9f550 (diff) | |
| download | vyos-1x-31d0ac632882e0faf8334823acc0a29147d22cc0.tar.gz vyos-1x-31d0ac632882e0faf8334823acc0a29147d22cc0.zip | |
container: T7863: Add user-defined MAC option for containers (#4762)
Diffstat (limited to 'interface-definitions')
| -rw-r--r-- | interface-definitions/container.xml.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/interface-definitions/container.xml.in b/interface-definitions/container.xml.in index d4efc08be..c0afde48f 100644 --- a/interface-definitions/container.xml.in +++ b/interface-definitions/container.xml.in @@ -312,6 +312,24 @@ <multi/> </properties> </leafNode> + <leafNode name="mac"> + <properties> + <help>Media Access Control (MAC) address</help> + <valueHelp> + <format>macaddr</format> + <description>Hardware (MAC) address</description> + </valueHelp> + <valueHelp> + <format>auto</format> + <description>Generate a random MAC address for the container</description> + </valueHelp> + <constraint> + <validator name="mac-address"/> + <regex>(auto)</regex> + </constraint> + </properties> + <defaultValue>auto</defaultValue> + </leafNode> </children> </tagNode> <tagNode name="port"> |
