Skip to content

Commit

Permalink
plans to handle DHCP restart service after its conflicts ends with ya…
Browse files Browse the repository at this point in the history
…ng model
  • Loading branch information
MuhammadUmarAsad committed Feb 21, 2023
1 parent b4197b9 commit 0df0f34
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions config/vlan.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,13 @@ def add_vlan(db, vid, multiple):

# set dhcpv6_relay table
set_dhcp_relay_table('DHCP_RELAY', config_db, vlan, None)
# We need to restart dhcp_relay service after dhcpv6_relay config change
dhcp_relay_util.handle_restart_dhcp_relay_service()


except ValueError:
ctx.fail("Invalid VLAN ID {} (2-4094)".format(vid))

# We need to restart dhcp_relay service after dhcpv6_relay config changes
# not handling all cases of vlan adding since DHCP relay table have conflicts with yang
dhcp_relay_util.handle_restart_dhcp_relay_service()


@vlan.command('del')
Expand Down

0 comments on commit 0df0f34

Please sign in to comment.