Skip to content

Generate interface table to have an entry for default VRF#525

Merged
prsunny merged 5 commits intosonic-net:masterfrom
prsunny:intf_migrate
Jul 10, 2019
Merged

Generate interface table to have an entry for default VRF#525
prsunny merged 5 commits intosonic-net:masterfrom
prsunny:intf_migrate

Conversation

@prsunny
Copy link
Contributor

@prsunny prsunny commented May 1, 2019

- What I did
Generate interface table to have an entry designated to default VRF during config reload. This is when the interface is not configured to be part of any VRFs. This is a placeholder PR to be merged along with sonic-net/sonic-buildimage#2848

Current:

    "VLAN_INTERFACE": {
        "Vlan1000|192.168.0.1/21": {}
    },

Proposed:

    "VLAN_INTERFACE": {
        "Vlan1000": {},
        "Vlan1000|192.168.0.1/21": {}
    },

- How I did it
DB migrator modified to migrate interface table during config reload

- How to verify it
Run config reload and verify for entries without prefix in config_db

 2) "LOOPBACK_INTERFACE|Loopback0|FC00:1::32/128"
 3) "MGMT_INTERFACE|eth0|FC00:2::32/64"
 4) "PORTCHANNEL_INTERFACE|PortChannel0002|FC00::75/126"
 5) "PORTCHANNEL_INTERFACE|PortChannel0001|FC00::71/126"
 6) "PORTCHANNEL_INTERFACE|PortChannel0004|10.0.0.62/31"
 7) "PORTCHANNEL_INTERFACE|PortChannel0001"
 8) "PORTCHANNEL_INTERFACE|PortChannel0004|FC00::7D/126"
 9) "PORTCHANNEL_INTERFACE|PortChannel0003|10.0.0.60/31"
10) "PORTCHANNEL_INTERFACE|PortChannel0003"
11) "PORTCHANNEL_INTERFACE|PortChannel0004"
12) "PORTCHANNEL_INTERFACE|PortChannel0003|FC00::79/126"
13) "VLAN_INTERFACE|Vlan1000|192.168.0.1/21"
14) "LOOPBACK_INTERFACE|Loopback0|10.1.0.32/32"
15) "PORTCHANNEL_INTERFACE|PortChannel0001|10.0.0.56/31"
16) "MGMT_INTERFACE|eth0|10.3.147.47/23"
17) "VLAN_INTERFACE|Vlan1000"
18) "PORTCHANNEL_INTERFACE|PortChannel0002|10.0.0.58/31

- Previous command output (if the output of a command-line utility has changed)

- New command output (if the output of a command-line utility has changed)

@prsunny
Copy link
Contributor Author

prsunny commented Jun 19, 2019

retest this please

@prsunny
Copy link
Contributor Author

prsunny commented Jun 24, 2019

retest this please

@prsunny prsunny merged commit 5a5b74d into sonic-net:master Jul 10, 2019
yxieca added a commit to yxieca/sonic-utilities that referenced this pull request Oct 1, 2019
This part of the change is needed in 201811 branch.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
yxieca added a commit that referenced this pull request Oct 2, 2019
This part of the change is needed in 201811 branch.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
seiferteric pushed a commit to project-arlo/sonic-buildimage that referenced this pull request Oct 14, 2019
* Update src/sonic-utilities from branch 'broadcom_sonic'
  to 279d8ca317103aee4df82f2afecd6083a598ce09
  - [JIRA SONIC-694] Placeholder for VRF Lite support
    Merge from PRS: sonic-net/sonic-utilities#525
    Adding CLI support for VRF configuration and show commands
    Fixing vlan member add and port-channel member add clis for new
    interface vrf schema
    Making all ipv4 & ipv6 clis vrf aware.
    Modifying code which access interface config db.
    
    Dev Sanity:
    http://10.59.132.240:9009/projects/csg_sonic/sanity/logs/dev-sanity-td3-td3-01/sonic_sanity_190616_1716_579/
    
    Change-Id: I27c2badb720e56934878320906219ee7ae45f765
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants