Skip to content

ldpd: problem trying to copy & paste l2vpn config using vtysh #25

@rwestphal

Description

@rwestphal

Problem description:

ubuntu(config)# do sh run
Building configuration...
(...)
!
l2vpn CUST_A type vpls
 bridge rt1-br0
 member interface rt1-eth0
 !
 member pseudowire rt1-mpw0
  neighbor lsr-id 2.2.2.2
  pw-id 100
 !
 member pseudowire rt1-mpw1
  neighbor lsr-id 3.3.3.3
  pw-id 100
 !
!
(...)
ubuntu(config)# no l2vpn CUST_A type vpls 
ubuntu(config)# l2vpn CUST_A type vpls
ubuntu(config-l2vpn)#  bridge rt1-br0
ubuntu(config-l2vpn)#  member interface rt1-eth0
ubuntu(config-l2vpn)#  !
ubuntu(config-l2vpn)#  member pseudowire rt1-mpw0
ubuntu(config-l2vpn-pw)#   neighbor lsr-id 2.2.2.2
ubuntu(config-l2vpn-pw)#   pw-id 100
ubuntu(config-l2vpn-pw)#  !
ubuntu(config-l2vpn-pw)#  member pseudowire rt1-mpw1
% [LDP] Unknown command:  member pseudowire rt1-mpw1
ubuntu(config)#   neighbor lsr-id 3.3.3.3
% Unknown command.
ubuntu(config)#   pw-id 100
% Unknown command.
ubuntu(config)#  !

The same problem doesn't happen when we configure ldpd directly through telnet:

ldpd(config)# l2vpn CUST_A type vpls
ldpd(config-l2vpn)#  bridge rt1-br0
ldpd(config-l2vpn)#  member interface rt1-eth0
ldpd(config-l2vpn)#  !
ldpd(config-l2vpn)#  member pseudowire rt1-mpw0
ldpd(config-l2vpn-pw)#   neighbor lsr-id 2.2.2.2
ldpd(config-l2vpn-pw)#   pw-id 100
ldpd(config-l2vpn-pw)#  !
ldpd(config-l2vpn-pw)#  member pseudowire rt1-mpw1
ldpd(config-l2vpn-pw)#   neighbor lsr-id 3.3.3.3
ldpd(config-l2vpn-pw)#   pw-id 100
ldpd(config-l2vpn-pw)#  !
ldpd(config-l2vpn-pw)# !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions