summaryrefslogtreecommitdiff
path: root/snapcraft.yaml
diff options
context:
space:
mode:
authorChad Smith <chad.smith@canonical.com>2017-05-09 20:23:05 -0600
committerScott Moser <smoser@brickies.net>2017-05-10 12:58:50 -0400
commitdd03bb411c9a6f10854a3bbc3223b204c3d4d174 (patch)
treebedcd3e6bd970ef99f87fee215af9a152e046457 /snapcraft.yaml
parent0a71d5a870b416f2c86c8bc196004bb3fc0768a0 (diff)
downloadvyos-cloud-init-dd03bb411c9a6f10854a3bbc3223b204c3d4d174.tar.gz
vyos-cloud-init-dd03bb411c9a6f10854a3bbc3223b204c3d4d174.zip
sysconfig: Raise ValueError when multiple default gateways are present.
Fixed setting Route.has_set_default_ipv6 or *_ipv4 to track whether a route already has a default gateway defined. The code was setting Route.has_set_default which wasn't checked when raising "duplicate gateway" ValueErrors. Added unit tests to exercise this expected raised ValueError. Also moved is_ipv6 = subnet.get('ipv6') logic out of a for loop because we don't need to recalculate the same value every route iteration. LP: #1687485
Diffstat (limited to 'snapcraft.yaml')
0 files changed, 0 insertions, 0 deletions