- description="List all links in the RSpec. " +
- "Use this to display the list of available links. " )
+ description="List all links in the RSpec. " +
+ "Use this to display the list of available links. ")
links = rspec.version.get_links()
if command.opts.outfile:
sys.stdout = open(command.opts.outfile, 'w')
links = rspec.version.get_links()
if command.opts.outfile:
sys.stdout = open(command.opts.outfile, 'w')
for link in links:
ifname1 = Xrn(link['interface1']['component_id']).get_leaf()
ifname2 = Xrn(link['interface2']['component_id']).get_leaf()
print "%s %s" % (ifname1, ifname2)
for link in links:
ifname1 = Xrn(link['interface1']['component_id']).get_leaf()
ifname2 = Xrn(link['interface2']['component_id']).get_leaf()
print "%s %s" % (ifname1, ifname2)