diff options
author | Christian Breunig <christian@breunig.cc> | 2023-11-21 21:17:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-21 21:17:01 +0100 |
commit | d3c7d9731b44e966313bb1ba3cc3c731d79200a9 (patch) | |
tree | ff0187dca6f6d377e7dd022cc6dc2dcaca4477bc /python/vyos/ifconfig | |
parent | 821eaea09d2e58ac5e2e5857ca9249f811062a4b (diff) | |
parent | a7a90e81ad03ec33acb32beeab71dbd5f27a2044 (diff) | |
download | vyos-1x-d3c7d9731b44e966313bb1ba3cc3c731d79200a9.tar.gz vyos-1x-d3c7d9731b44e966313bb1ba3cc3c731d79200a9.zip |
Merge pull request #2518 from giga1699/T5770
T5770 Enable MACsec encryption stanza
Diffstat (limited to 'python/vyos/ifconfig')
-rw-r--r-- | python/vyos/ifconfig/macsec.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/vyos/ifconfig/macsec.py b/python/vyos/ifconfig/macsec.py index 9329c5ee7..bde1d9aec 100644 --- a/python/vyos/ifconfig/macsec.py +++ b/python/vyos/ifconfig/macsec.py @@ -45,6 +45,10 @@ class MACsecIf(Interface): # create tunnel interface cmd = 'ip link add link {source_interface} {ifname} type {type}'.format(**self.config) cmd += f' cipher {self.config["security"]["cipher"]}' + + if 'encrypt' in self.config["security"]: + cmd += ' encrypt on' + self._cmd(cmd) # Check if using static keys |