Skip to content
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

CLI - Hierarchy position does not change, when moving to BGP L2VPN EVPN #309

Closed
jhiggins-NZ opened this issue Mar 31, 2017 · 4 comments
Closed
Assignees
Labels

Comments

@jhiggins-NZ
Copy link

jhiggins-NZ commented Mar 31, 2017

When entering the configuration mode for bgp l2vpn evpn, the prompt does not change to reflect the new mode.

Example:

(config-router)# address-family l2vpn evpn 
(config-router)# neighbor 2.2.2.2 activate       **<< Expected " (config-router-af)# " prompt**
(config-router)# exit

(config)# do sh run
Building configuration...

Current configuration:
!
no ipv6 forwarding
!
debug ospf6 lsa unknown
!
router bgp 100
 neighbor 2.2.2.2 remote-as external
 !
 address-family l2vpn evpn
  neighbor 2.2.2.2 activate            **<<< Writes to running config however**

Example

(config)# router bgp 100
(config-router)# address-family l2vpn evpn 
(config-router)#                                         **<<<  No hierarchy change**
  address-family     Enter Address Family command mode 
  aggregate-address  Configure BGP aggregate entries
  bgp                BGP specific commands
  coalesce-time      Subgroup coalesce timer
  distance           Define an administrative distance
@donaldsharp donaldsharp added the bug label Apr 3, 2017
@rwestphal
Copy link
Member

I just checked here and the "address-family l2vpn evpn" command works when telneting directly to bgpd but not when using vtysh.

Looking at the code I found this:

bgpd's code:

DEFUN_NOSH (address_family_evpn,
       address_family_evpn_cmd,
       "address-family <l2vpn evpn>",
       "Enter Address Family command mode\n"
       "EVPN Address family\n"
       "Layer2 VPN Address family\n"
       "Ethernet Virtual Private Network Subsequent Address Family\n")
{
  vty->node = BGP_EVPN_NODE;
  return CMD_SUCCESS;
}

vtysh's code:

DEFUNSH (VTYSH_BGPD,
         address_family_evpn,
         address_family_evpn_cmd,
         "address-family <l2vpn evpn>",
         "Enter Address Family command mode\n"
         "EVPN Address family\n"
         "Layer2 VPN Address family\n"
         "Ethernet Virtual Private Network Subsequent Address Family\n")
{
#if defined(HAVE_EVPN)
  vty->node = BGP_EVPN_NODE;
#endif /* HAVE_EVPN */
  return CMD_SUCCESS;
}

@louberger could you take a look at this?

@louberger
Copy link
Member

evpn really belongs to 6winds @vjardin6WIND @pguibert6WIND , can one of you take a look?

@pguibert6WIND pguibert6WIND self-assigned this Apr 12, 2017
@pguibert6WIND
Copy link
Member

Hello,
thanks @ jhiggins-NZ for pointing out the issue.
thanks @rwestphal for pointing out the root cause.
I made a fix into pull request

#363

I think it will be very helpful.
anyone can review it ?

@rwestphal
Copy link
Member

Fixed by #379.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants