Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
@itentialopensource/l2-l3-vpn
Advanced tools
Readme
This artifact will demo Itential platform capabilities for handling and managing L2VPN (Layer 2 Virtual Private Network) and L3VPN (Layer 3 Virtual Private Network) services.
The components used in this artifact are:
This artifact has been tested on:
Install this artifact using App Artifacts. Additionally, there are a few NSO packages to install manually.
cp -Rv <!--PWD-->/l2-l3-vpn/package/assets/service-models/IAP\ Artifact-l2vpn /var/opt/ncs/packages/
cd IAP\ Artifact-l2vpn/src
make clean all
ncs_cli -u admin
request packages reload
show packages package oper-status
admin@ncs> show packages package oper-status
PACKAGE
PROGRAM META FILE
CODE JAVA BAD NCS PACKAGE PACKAGE CIRCULAR DATA LOAD ERROR
NAME UP ERROR UNINITIALIZED VERSION NAME VERSION DEPENDENCY ERROR ERROR INFO
--------------------------------------------------------------------------------------------------------------
IAP-Artifact-l2vpn X - - - - - - - - -
Itential Tools X - - - - - - - - -
cisco-ios X - - - - - - - - -
cisco-iosxr X - - - - - - - - -
[ok][2019-06-04 14:12:05]
admin@ncs>
IAP Artifact-l3vpn
to NSO packages folder normally located at /var/opt/ncs/packages
cd IAP Artifact-l3vpn/src
make clean all
ncs_cli -u admin
request packages reload
admin@ncs> *** ALARM package-load-failure: [ImportError: No module named netaddr]
. To resolve this issue, pip install netaddr
, and perform a package reload once againshow packages package oper-status
admin@ncs> show packages package oper-status
PACKAGE
PROGRAM META FILE
CODE JAVA BAD NCS PACKAGE PACKAGE CIRCULAR DATA LOAD ERROR
NAME UP ERROR UNINITIALIZED VERSION NAME VERSION DEPENDENCY ERROR ERROR INFO
--------------------------------------------------------------------------------------------------------------
IAP-Artifact-l2vpn X - - - - - - - - -
IAP-Artifact-l3vpn X - - - - - - - - -
Itential Tools X - - - - - - - - -
cisco-ios X - - - - - - - - -
cisco-iosxr X - - - - - - - - -
[ok][2019-06-04 14:12:05]
admin@ncs>
This artifact requires Cisco IOS and IOSXR devices to run. IOS and IOSXR will be used with the L3VPN
service. IOSXR will be used with the L2VPN service
. This step will guide you through building the netsim devices used in running this artifact. We suggest running this artifact for the first time on blank netsim devices, but using real lab devices is also possible.
cd /var/opt/ncs/
ncs-netsim create-network packages/cisco-ios 2 ios
. This will create a network with two virtual ios devices named ios0 and ios1.ncs-netsim add-to-network packages/cisco-iosxr 2 iosxr
. This will add two virtual iosxr devices to the netsim network.ncs-netsim start
ncs-netsim ncs-xml-init> load.xml
ncs_cli -u admin
config
load merge load.xml
commit dry-run outformat native
commit
request devices fetch-ssh-host-keys
request devices connect
request devices sync-from
{
"instanceData":
{
"/ncs:services/IAP-Artifact-l2vpn:l2vpn": [{
"id": 12321,
"bandwidth": "10",
"pwid": "4000",
"qos_policy": "Q-5rt-95sd",
"location": [{
"location": "Atlanta"
}, {
"location": "Dallas"
}],
"device": [{
"location": "Atlanta",
"device": "iosxr0",
"description": "testingDescriptionSite1",
"interface": "11",
"svlan": "232",
"neighbor": "2.2.2.2",
"mtu": "2000"
}, {
"location": "Dallas",
"device": "iosxr1",
"description": "testingDescriptionSite2",
"interface": "33",
"svlan": "45",
"neighbor": "2.2.2.1",
"mtu": "2000"
}]
}]
}
}
{
"instanceData":
{
"/IAP-Artifact-l3vpn:l3vpn": [{
"vpn-id": "123456",
"vpn-name": "testingName",
"description": "testingDescription",
"site": [{
"site-id": "1",
"ce": "ios0",
"site-description": "testingSiteDescription",
"lan-link": [{
"lan-interface-name": "0/1",
"lan-ip": "192.0.2.0/21",
"lan-description": "testingLanDescription"
}],
"wan-link": [{
"pe": "iosxr0",
"pe-interface-name": "0/0/0/1",
"vlan": "123",
"pe-as-num": "321",
"pe-router-ip": "192.0.2.0/21",
"pe-ip": "192.0.2.0/21",
"ce-wan-interface-name": "0/0",
"ce-wan-ip": "192.0.2.0/21",
"wan-description": "testingWanDescription"
}]
}]
}]
}
}
POST: workflow_engine/startJob/:workflow
Parameters:
workflow string Workflow name (URL Parameter)
description string Description for the job (Body Parameter)
variables object Job's variables (Body Parameter)
Sample Request:
curl -X POST \
--url 'https://{{host}}:{{port}}/workflow_engine/startJob/IAP Artifacts L2VPN Multisite Create Workflow?token={{token}}' \
--header 'Content-Type: application/json' \
--data '{
"description": "testingL2VPN",
"variables": {
"instance": {
"/ncs:services/IAP-Artifact-l2vpn:l2vpn": [{
"id": 12321,
"bandwidth": "10",
"pwid": "4000",
"qos_policy": "Q-5rt-95sd",
"location": [{
"location": "Atlanta"
}, {
"location": "Dallas"
}],
"device": [{
"location": "Atlanta",
"device": "iosxr0",
"description": "testingDescriptionSite1",
"interface": "11",
"svlan": "232",
"neighbor": "2.2.2.2",
"mtu": "2000"
}, {
"location": "Dallas",
"device": "iosxr1",
"description": "testingDescriptionSite2",
"interface": "33",
"svlan": "45",
"neighbor": "2.2.2.1",
"mtu": "2000"
}]
}]
}
}
}`
POST: workflow_engine/startJob/:workflow
Parameters:
workflow string Workflow name (URL Parameter)
description string Description for the job (Body Parameter)
variables object Job's variables (Body Parameter)
Sample Request:
curl -X POST \
--url 'https://{{host}}:{{port}}/workflow_engine/startJob/IAP Artifacts L3VPN Multisite Create Workflow?token={{token}}' \
--header 'Content-Type: application/json' \
--data '{
"description": "testingL3VPN",
"variables": {
"instance": {
"/IAP-Artifact-l3vpn:l3vpn": [{
"vpn-id": "123456",
"vpn-name": "testingName",
"description": "testingDescription",
"site": [{
"site-id": "1",
"ce": "ios0",
"site-description": "testingSiteDescription",
"lan-link": [{
"lan-interface-name": "0/1",
"lan-ip": "192.0.2.0/21",
"lan-description": "testingLanDescription"
}],
"wan-link": [{
"pe": "iosxr0",
"pe-interface-name": "0/0/0/1",
"vlan": "123",
"pe-as-num": "321",
"pe-router-ip": "192.0.2.0/21",
"pe-ip": "192.0.2.0/21",
"ce-wan-interface-name": "0/0",
"ce-wan-ip": "192.0.2.0/21",
"wan-description": "testingWanDescription"
}]
}]
}]
}
}
}`
To remove the artifact:
/var/opt/ncs/packages
ncs_cli -u amdin
request packages reload
show packages package oper-status
netaddr
in order to load the attached service models. This library can be installed via the pip
command Ex. pip install netaddr
FAQs
A IAP demo demo for handling and managing L2VPN (Layer 2 Virtual Private Network) and L3VPN (Layer 3 Virtual Private Network) services.
The npm package @itentialopensource/l2-l3-vpn receives a total of 2 weekly downloads. As such, @itentialopensource/l2-l3-vpn popularity was classified as not popular.
We found that @itentialopensource/l2-l3-vpn demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.