소스 검색

Make default routing interface used with ferm compatible with stretch

Emmanuel Bouthenot 7 년 전
부모
커밋
f65224897e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      roles/common/templates/ferm/ferm.conf.j2

+ 1 - 1
roles/common/templates/ferm/ferm.conf.j2

@@ -7,7 +7,7 @@
 #
 #
 
 
 # Detecting network interface assiociated with default route
 # Detecting network interface assiociated with default route
-@def $NETDEV = `ip route list | sed -r -n 's/^default\s+via\s+.*\s+dev\s+([^\s]+)$/\1/p'`;
+@def $NETDEV = `ip route list | sed -r -n 's/^default\s+via\s+.*\s+dev\s+([a-z0-9]+).*$/\1/p'`;
 # Detecting list of bridge network interfaces
 # Detecting list of bridge network interfaces
 @def $BRIDGES = `ip link show up | sed -r -n 's/^[0-9]:\s+((xen|)br[^:]+):\s+.*$/\1/p' | xargs`;
 @def $BRIDGES = `ip link show up | sed -r -n 's/^[0-9]:\s+((xen|)br[^:]+):\s+.*$/\1/p' | xargs`;