-
Notifications
You must be signed in to change notification settings - Fork 650
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loopback interface configuration CLIs #879
Conversation
This pull request introduces 1 alert when merging 6b08911f8ba54d50b6220e1a7d1242453299c115 into 3f651dc - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging a9495b43c67db1bd38f477ded18c1269821f3666 into 3f651dc - view on LGTM.com new alerts:
|
@preetham-singh: Please fix LGTM alert. |
@preetham-singh, can you resolve conflict? Also could you provide the |
from linux subsystem.
Updating Loopback creation CLI to only create loopback interface and not perform vrf bind to be inline with other interface vrf binding.
Thanks @prsunny . I have resolved conflicts and updated the commit with show output examples. |
doc/Command-Reference.md
Outdated
eth0 10.3.147.252/23 up/up N/A N/A | ||
lo 127.0.0.1/8 up/up N/A N/A | ||
Interface IPv4 address/mask Master Admin/Oper BGP Neighbor Neighbor IP Flags | ||
------------- ------------------- ------------ -------------- ------------- ------------- ------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that Master
is second column - ref . I don't see a code change. Please correct the output
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
doc/Command-Reference.md
Outdated
Vlan100 fe80::eef4:bbff:fefe:880a%Vlan100/64 up/up N/A N/A | ||
eth0 fe80::eef4:bbff:fefe:880a%eth0/64 up/up N/A N/A | ||
lo fc00:1::32/128 up/up N/A N/A | ||
Interface IPv6 address/mask Master Admin/Oper BGP Neighbor Neighbor IP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
show/main.py
Outdated
# 'show interfaces loopback' group command | ||
# | ||
# | ||
@interfaces.command() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if we want to have this command output. IMO, all of this is available in show ip interfaces
. show interfaces
is mostly the Layer 2 info. I think this command is redundant. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a internal request to add command to list loopback interfaces created since show ip interface would show only if IP was assigned. Hence we planned to add this command. If this is not necessary I can remove this command and update. Please let me know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, it is better to avoid any duplicates. This file is already pretty big. Could you please remove this command since in most cases, loopback will be assigned with an IP address?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
show/main.py
Outdated
for lo in natsorted(loopbacks): | ||
if type(lo) == tuple: | ||
continue | ||
intf_vrf = get_intf_master(lo) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use get_if_master
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
- This flag is currently no functional impact with just this change. - This flag is intended to coordinate fast-reboot shutdown path. - This flag enables moving fast-reboot per service knowledge to service scripts. which unblocks moving warm-reboot per service knowledge to service scripts. - This flag is consistent with the bootup flag we setting on the boot up path. Signed-off-by: Ying Xie <ying.xie@microsoft.com>
* [utility] Filter FDB entries FDB table can get large due to VM creation/deletion which cause fast reboot to slow down. This utility fitlers FDB entries based on current MAC entries in the ARP table. signed-off-by: Tamer Ahmed <tamer.ahmed@microsoft.com>
…ot user (#872) Removed user privileges checks. These changes fix #800. The ZTP PR sonic-net/sonic-ztp#13 is also required for these changes to work as expected. ``` admin@sonic:~$ show ztp status ZTP Admin Mode : True ZTP Service : Processing ZTP Status : IN-PROGRESS ZTP Source : local-fs (/host/ztp/ztp_data_local.json) Runtime : 06m 26s Timestamp : 2020-04-08 13:08:22 UTC ZTP Service is active 01-test-plugin: IN-PROGRESS ``` Signed-off-by: Rajendra Dendukuri <rajendra.dendukuri@broadcom.com>
Signed-off-by: Nazarii Hnydyn <nazariig@mellanox.com>
* ssd_mitigation_changes * ssd_mitigation_changes * ssd_mitigation_changes
* Changes: 1) Add syslog support. 2) Enable forever periodic scan 3) Skip link local addresses 4) Skip eth0 routes 3) Adopt to 20191130 changes 3.1) APPl-DB INTF_TABLE may not have IP address 3.2) nexthop is never empty * No logical code change. A small name change. * 1) Adopt to 201811 -- Filter out 'lo' & 'docker0' in addition to 'eth0' as local routes 2) Ensure to read route entry w/o prefix, if not present with prefix
* [Phase 1] Multi ASIC config command changes, db_mgrator.py script updates for handing namespace. * Fixes and comment updates * Comments addressed + added support for user to input the config files per namespace also. * Updates per comments + based on the updated SonicV2Connector/ConfigDBConnector class design * Review comments update. * Help string updated for config save/reload/load
* Fix NameError for 'swsssdk', align neig output
- Modify the load_minigraph command handler to support multi NPU platforms
…ers' group (#900) Co-authored-by: Travis Van Duyn <trvanduy@microsoft.com>
output. Reusing existing get_intf_master to get vrf binding for the interface
can you do a rebase? |
- Modify the load_minigraph command handler to support multi NPU platforms
Done |
@preetham-singh , can you update the description as there is no new |
* Adding configuration CLIs for loopback interfaces
- What I did
Adding Configuration CLI to create loopback interfaces
Adding Show cli: show interfaces loopback to print list of loopback interfaces created with VRF binding information from config-db.
Examples:
- How I did it
- How to verify it
Create Loopback using:
config loopback add Loopback
config loopback del Loopback where id is loopback id in range <0-999>
show interfaces loopback [Loopback] [--verbose] Prints loopback interfaces configured by user by fetching information from config-db. If --verbose option provided, it prints IP configured on corresponding Loopback interface by fetching information from config-db.
- 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)