This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/src/sonic-config-engine
Shashanka Balakuntala c0963db5a3 [dhcp-relay]: Modify dhcp relay to pick primary address (#17012)
This is change taken as part of the HLD: sonic-net/SONiC#1470 and this is a follow up on the PR #16827 where in the docker-dhcp we pick the value of primary gateway of the interface from the VLAN_Interface table which has "secondary" flag set in the config_db

Microsoft ADO (number only): 16784946

How did I do it
-  Changes in the j2 file to add a new "-pg" parameter in the dhcpv4-relay.agents.j2, the ip would be retrieved from the config db's vlan_interface table such that the interface which are picked will have secondary field set.

- Changes in isc-dhcp to re-order the addresses of the discovered interface and which has the ip which has the passed parameter.
2023-12-04 22:14:02 +00:00
..
data [ACL] enable ACL FC when genereting config from minigraph but disable by default (#8908) 2021-11-11 09:07:54 +08:00
tests Fix device type and add cluster in DEVICE_NEIGHBOR_METADATA yang model (#17049) 2023-11-07 14:54:30 +08:00
__init__.py [cfggen] Remove NatSorted 2020-09-30 07:07:43 -07:00
.gitignore [sonic-config-engine] Update .gitignore (#5223) 2020-08-20 11:09:10 -07:00
config_samples.py [CI][doc][build] Trim src folder files trailing blanks (#15162) 2023-05-24 10:01:43 -07:00
MANIFEST.in [config/acl] Support everflow config translation (#468) 2017-04-07 01:10:05 -07:00
minigraph.py Disable telemetry feature (#17166) 2023-11-14 15:25:03 +02:00
openconfig_acl.py Fix openconfig_acl.py (#16303) 2023-08-30 10:46:21 -07:00
portconfig.py Add support data for fabric monitoring in CONFIG_DB. (#14170) 2023-06-16 15:16:40 -07:00
setup.py Check SONiC dependencies before installation. (#13850) 2023-03-02 08:20:39 +08:00
sonic_yang_cfg_generator.py [Yang][cfggen] update sonic-cfggen to generate config_db from Yang data (#7712) 2021-06-10 12:03:33 -07:00
sonic-acl-extension.yang [openconfig_acl] Allow setting ICMP type/code to 0 (#6932) 2021-03-02 14:32:00 -08:00
sonic-cfggen [dhcp-relay]: Modify dhcp relay to pick primary address (#17012) 2023-12-04 22:14:02 +00:00