summaryrefslogtreecommitdiff
path: root/src/conf_mode/vpp_interfaces_loopback.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf_mode/vpp_interfaces_loopback.py')
-rw-r--r--src/conf_mode/vpp_interfaces_loopback.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conf_mode/vpp_interfaces_loopback.py b/src/conf_mode/vpp_interfaces_loopback.py
index a96c379a1..6aa3fc850 100644
--- a/src/conf_mode/vpp_interfaces_loopback.py
+++ b/src/conf_mode/vpp_interfaces_loopback.py
@@ -130,7 +130,8 @@ def apply(config):
# Add interface
kernel_interface = config.get('kernel_interface', '')
- i = LoopbackInterface(ifname, kernel_interface)
+ state = 'up' if 'disable' not in config else 'down'
+ i = LoopbackInterface(ifname, kernel_interface, state)
i.add()
# Add kernel-interface (LCP) if interface is not exist