From 3d515fd9af9f126667a9c2da9c2f40c4c37c28df Mon Sep 17 00:00:00 2001 From: hasso Date: Tue, 1 Feb 2005 21:30:04 +0000 Subject: * bgp_attr.c, bgp_snmp.c, bgp_vty.c, bgpd.[ch]: Remove support for old draft - ie. "neighbor version 4-" commands. Preserve dummy "neighbor version" command as deprecated. [merge from GNU Zebra] --- bgpd/bgpd.c | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'bgpd/bgpd.c') diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index 097b235c..1cce8c5e 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -705,7 +705,6 @@ peer_new () peer->v_asorig = BGP_DEFAULT_ASORIGINATE; peer->status = Idle; peer->ostatus = Idle; - peer->version = BGP_VERSION_4; peer->weight = 0; /* Set default flags. */ @@ -3061,24 +3060,6 @@ peer_advertise_interval_unset (struct peer *peer) return 0; } -int -peer_version_set (struct peer *peer, int version) -{ - if (version != BGP_VERSION_4 && version != BGP_VERSION_MP_4_DRAFT_00) - return BGP_ERR_INVALID_VALUE; - - peer->version = version; - - return 0; -} - -int -peer_version_unset (struct peer *peer) -{ - peer->version = BGP_VERSION_4; - return 0; -} - /* neighbor interface */ int peer_interface_set (struct peer *peer, const char *str) @@ -4350,11 +4331,6 @@ bgp_config_write_peer (struct vty *vty, struct bgp *bgp, sockunion2str (peer->update_source, buf, SU_ADDRSTRLEN), VTY_NEWLINE); - /* BGP version print. */ - if (peer->version == BGP_VERSION_MP_4_DRAFT_00) - vty_out (vty, " neighbor %s version %s%s", - addr,"4-", VTY_NEWLINE); - /* advertisement-interval */ if (CHECK_FLAG (peer->config, PEER_CONFIG_ROUTEADV)) vty_out (vty, " neighbor %s advertisement-interval %d%s", -- cgit v1.2.1