def add_bgp_neighbor(self, arg_asnumber, arg_neighbor_ip, arg_remote_as, arg_update_source = None):
        oc_bgp = OpenConfig_Bgp()

        oc_neighor = oc_bgp.neighbors.Neighbor()
        oc_neighor.neighbor_address = arg_neighbor_ip
        oc_neighor.config.neighbor_address = arg_neighbor_ip
        oc_neighor.config.peer_as = arg_remote_as

        if(arg_update_source):
            oc_neighor.transport.config.local_address = arg_update_source

        oc_bgp.neighbors.neighbor.append(oc_neighor)

        self.xr.ydk_crud.create(self.xr.ydk_provider, oc_bgp)
    def add_ipv4_unicast_SAFI_to_bgp_neighbor(self, arg_asnumber, arg_neighbor_ip):
        oc_bgp = OpenConfig_Bgp()

        oc_neighor = oc_bgp.neighbors.Neighbor()
        oc_neighor.neighbor_address = arg_neighbor_ip

        oc_safi = oc_neighor.afi_safis
        oc_safi = oc_neighor.afi_safis.AfiSafi()
        oc_safi.afi_safi_name = OpenConfig_Ipv4UnicastIdentity()
        oc_safi.config.enabled = True
        oc_safi.config.afi_safi_name = OpenConfig_Ipv4UnicastIdentity()

        oc_neighor.afi_safis.afi_safi.append(oc_safi)

        oc_bgp.neighbors.neighbor.append(oc_neighor)

        self.xr.ydk_crud.create(self.xr.ydk_provider, oc_bgp)
    def create_bgp_procces(self, arg_asnumber):

        oc_bgp = OpenConfig_Bgp()
        oc_bgp.global_.config.as_ = arg_asnumber

        self.xr.ydk_crud.create(self.xr.ydk_provider, oc_bgp)