Commit graph

91 commits

Author SHA1 Message Date
Miro Tomaska
a991ac87c7 Revert "Add Tap-as-a-Service client code"
This reverts commit 01ffc4684a.

Reason for revert:
In the last PTG we decided that the best location for the stadium projects osc client code would be the openstackclient repo. A patch was proposed for tapaas, see depends-on link below. Other projects will follow

Change-Id: Iaad2080f0ef552a0c0a00635bea48130cfc327a4
Depends-On: https://review.opendev.org/c/openstack/python-openstackclient/+/963445
Signed-off-by: Miro Tomaska <mtomaska@redhat.com>
2025-11-06 21:39:01 +00:00
Mohammed Naser
01ffc4684a Add Tap-as-a-Service client code
This commit adds the Tap-as-a-Service client code as-is based
on the discussion that it can now be included into the Neutron
client[1].

[1]: https://lists.openstack.org/archives/list/openstack-discuss@lists.openstack.org/message/PCITF3UPLEEVQB7EVJ2MB6FLAI3RFYSR/

Change-Id: I82b3229b3f9ac7ef57324d0a611527c77d26c3b6
Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
2025-09-12 11:37:06 -04:00
Bodo Petermann
dc026cd3d6 vpnaas: add support for more ciphers (auth, encryption, pfs modes)
Extend the lists of choices for encryption algorithms, auth algorithms,
and PFS groups to include the additions made in neutron-vpnaas.

Encryption algorithms: add AES CCM mode and AES GCM mode variants
for 128/192/256 bit keys and 8/12/16 octet ICVs, add AES CTR modes
for 128/192/256 bit keys
Auth algorithms: add aes-xcbc and aes-cmac.
PFS: add Diffie Hellman groups 15 to 31.

Related-Bug: #1938284
Change-Id: I3fd17b93820da9d86b2fc4bc89058475d7629d5d
2025-02-26 16:02:25 +01:00
elajkat
b2107dc867 vpnaas: show external_vx_ip for vpn service show
Closes-Bug: #2086144
Change-Id: Ic8ae85ee62e35991e8bb0096cdc6785a0b04e545
2024-11-08 09:02:34 +01:00
Zuul
a10390c62e Merge "Fix insert and remove rule from firewall policy" 2024-05-20 11:19:44 +00:00
Valentin Chassignol
cb9aae55c8 BGPVPN: Fix resource comparison
This patch updates the resource comparison to accurately differentiate
between the manipulation of networks, ports, and router associations.
Introduced in I84fe4bb45d24c2f4a7a0246e2b9fb50354a715e0, the previous
implementation contained incorrect variable names, leading to
inconsistent results. This fix ensures that each resource type is
properly identified during comparison.

Closes-Bug: #2064286
Change-Id: Ieb87174296240f8f76ec10b39007935545b1bd3f
2024-05-06 14:22:08 +00:00
Benjamin Reichel
2169b2bbab Fix insert and remove rule from firewall policy
This change fixes the incompatability with the openstacksdk
for inserting and removing rules from firewall policiese.

Closes-Bug: #2057816
Change-Id: I8db7b4cc61b810887b0a675efa562f089821e8ec
2024-04-12 10:42:12 +02:00
Takashi Kajinami
2d93d2e1ed Bump hacking
hacking 3.0.x is too old.

This also pulls the hacking options from neutron.

Change-Id: Ic1a428a05131f98d5a9050b83613c5478904f202
2024-01-30 18:09:53 +09:00
elajkat
b9152a5042 OSC: Remove SFC V2 calls to neutronclient
Change SFC CLI to use SDK instead of deprecated neutronclient
python bindings.
Add possibility to delete multiple resources as it is common
for other delete commands.
Bump SDK minimum version to 1.5.0.

Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/887387
Actually the new SDK release is the dependency.
Related-Bug: #1999774
Change-Id: Ic22b8163155904113db8a4acf1fe7d75ae100a84
2023-09-08 15:54:02 +02:00
elajkat
396432ab06 OSC: Remove VPNAAS V2 calls to neutronclient
Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/886822
Actually the new SDK release is the dependency, so bump
minimum SDK version to 1.5.0.

Change-Id: I1933dceb3dc28b464e6e9c4ce468abbd03a00ba4
Related-Bug: #1999774
2023-09-08 15:53:44 +02:00
elajkat
fccfe8c3e5 OSC: Remove FWAAS V2 calls to neutronclient
Bump SDK min version to 1.5.0.

Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/883859
Related-Bug: #1999774
Change-Id: I1588ffa8035c2a4f558c6d3a630287542c718be4
2023-09-06 10:22:20 +02:00
Zuul
d497615240 Merge "BGPVPN: make resource_association method calls logic simpler" 2023-06-22 16:03:42 +00:00
Zuul
4521472198 Merge "Remove 'bgp speaker show dragents'" 2023-05-29 14:38:18 +00:00
elajkat
4ed299ad39 BGPVPN: make resource_association method calls logic simpler
This is a FUP based on the following comment:
https://review.opendev.org/c/openstack/python-neutronclient/+/875728/comment/c2f44683_82cffdbc/

Change-Id: I84fe4bb45d24c2f4a7a0246e2b9fb50354a715e0
Related-Bug: #1999774
2023-05-24 13:23:01 +02:00
elajkat
d4124aed1f OSC: Remove BGPVPN calls to neutronclient
With [1] the python binding code in Neutronclient prints warning
about future deprecation, change networking-bgpvpn osc client
code to use totally OpenstackSDK.

[1]: https://review.opendev.org/c/openstack/python-neutronclient/+/862371

Change-Id: Iae1378ffabda3d30257e35a6148e205a9f495eb5
Related-Bug: #1999774
Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/875530
2023-05-24 11:53:33 +02:00
Stephen Finucane
79c7de4630 Remove 'bgp speaker show dragents'
This has been deprecated for ages and generates an annoying warning when
building OSC docs. Time to cull it.

Change-Id: I76e4c7ab742d0bf27fecfda8fab41035618a4e24
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-05-17 13:04:37 +01:00
elajkat
0b271d3b8c OSC: Remove BGP calls to neutronclient
With [1] the python binding code in Neutronclient prints warning
about future deprecation, change neutron-dynamic-routing osc client
code to use totally OpenstackSDK.

[1]: https://review.opendev.org/c/openstack/python-neutronclient/+/862371

Related-Bug: #1999774
Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/869485
Depends-On: https://review.opendev.org/c/openstack/requirements/+/873598
Change-Id: I5dd143e670b70cc42a2ae48fe4bac0cf09416cb5
2023-03-03 13:16:15 +00:00
elajkat
68cbf56f9c Move network trunk commands from python-neutronclient
The depends-on patch adds trunk commands to OSC, as we can
long consider trunk operations as core Networking operations.

Change-Id: Ie557a5d541cf117d20f3f2b548620a74dbadb383
Depends-On: https://review.opendev.org/c/openstack/python-openstackclient/+/869447
Related-Bug: #1999774
2023-01-16 14:18:27 +01:00
Elvira García
776e360e35 Fix help sentence in network log create --enable
As the documentation states [1], the default in network log objects is
to be enabled, not disabled.

[1] https://docs.openstack.org/neutron/latest/admin/config-logging.html

Change-Id: I13e9d1132fc38104e6e85d9c8442bc7506adc2fd
2022-11-25 15:32:46 +01:00
Zuul
62c187f5c7 Merge "Allow 4byte ASNs in dynamic routing client" 2020-09-08 22:00:12 +00:00
Zuul
e999631422 Merge "Add aggressive negotiation mode for ikepolicy" 2020-09-08 22:00:10 +00:00
Jens Harbott
9ffa0ac14e Allow 4byte ASNs in dynamic routing client
Neutron-dynamic-routing has the bgp_4byte_asn extension which allows
4byte ASNs to be used, increasing the range of valid AS numbers. Since
we cannot easily tell beforehand whether that extension is available,
allow for the maximal interval to be used by clients and let the API
validate the input.

Change-Id: Ib4695272784b4a5ebbcb792cfec82dac3ef6f3cf
2020-09-01 13:51:11 +02:00
Jens Harbott
d1e5afb351 Fix description of bgp speaker set arg
The name argument for bgp speaker set defines the new name for the speaker,
make the description more clear about this.

Change-Id: I29a0c87214c3c60084d0541f8b9a7abc72ff987f
2020-07-12 21:14:40 +00:00
Hervé Beraud
42ebefab3b Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: I65fb53db889afcf1a947ea61094bfab877853324
2020-06-02 20:50:34 +02:00
zhanghao
c8d61703c2 Add aggressive negotiation mode for ikepolicy
The phase1 negotiation mode adds support for aggressive mode,
which can be selected when creating an ikepolicy.

Change-Id: I8148011558094db07b5f9eba70b16cfe6eeaf98f
Partial-Bug: #1701413
2020-05-13 08:46:26 -04:00
zhanghao
bb5b9cac6e Replace 'bgp speaker show dragents' with 'bgp dragent list'
In order to follow other agent related commands in OSC, it is more
appropriate and friendly to replace 'bgp speaker show dragents' with
'bgp dragent list'. this patch uses 'openstack bgp dragent list' to
show the list of dragents, and the optional parameter 'bgp-speaker'
shows the list of dragents hosting a specific bgp speaker.

Change-Id: I9e0703fccf535b1e1a2055ed917336055b7395f5
Closes-Bug: #1858377
2020-02-17 14:49:41 +00:00
zhanghao2
ee08644c5f Remove 'public' and 'private' parameters in fwaas_v2
The 'public' and 'private' parameters have been replaced
with 'share' and 'no-share' parameters in the Pike version,
they can be removed now.

Change-Id: I57a2e228ec1cdb6ed259914abc38bdada036d369
2019-10-01 05:21:19 -04:00
zhanghao2
34924865b3 Add friendly event hints for logging
When creating a network log with the '--event' parameter, it is
impossible to know which parameter values can be specified, and it
is necessary to add a prompt.

Change-Id: I6aa4f95b650cdc7b04e74b851a78a2ae42fc288a
2019-07-16 22:47:48 -04:00
Ryan Tidwell
680b417111
Add subnet onboard CLI
This is the implementation of the "onboard network subnets" CLI.
This enables the subnet onboard feature of neutron to be driven via
CLI.

Depends-On: https://review.openstack.org/348080
Change-Id: Ic637ed689b0d3806d2c33faa419c3a98a310effa
Implements: blueprint subnet-onboard
2019-02-27 08:39:40 -06:00
Akihiro Motoki
f99c63f98a Update hacking version to 1.1
Older hacking depends on pep8, but pep8 module is replaced by
pycodestyle. This can be resolved by updating hackinng version.

This commit also fixes E117 (over-indented) and
W605 (invalid escape sequence) warnings.

pep8 is dropped from lower-constraints.txt as it is no longer used.

Change-Id: I3a8e3b0dedf9422e4db02b525b333d12ce012a95
2019-01-31 10:45:24 +09:00
Zuul
a8720c3c4d Merge "Support of the boolean advertise_extra_routes" 2018-11-20 19:34:23 +00:00
Samuel Barré
b60283cd16 Support of the boolean advertise_extra_routes
This Boolean attribute is added to the Router Association resource
(Neutron API, 'bgpvpn' and 'bgpvpn-routes-control' API extensions) in
order to support routes control. This allow to propagate routes of
subnets not directly connected to the router
The corresponding code in networking-bgpvpn has already merged

See https://blueprints.launchpad.net/bgpvpn/+spec/routes-control

Change-Id: Icdd7f6592a9d657b6414645406f06b74b6f3bb11
Implements: blueprint routes-control
2018-11-20 14:59:08 +00:00
German Eichberger
a385656802 Adds the destination and source fwg to fwr
This will add the source and destination firewall group id to
firewall rules.

Change-Id: If69b87fc58d36aa7d879ace8e73bc0f7534a1ef4
2018-09-10 11:54:29 -06:00
Kim Bao Long
80f916489b [log] Add 'firewall_group' as a loggable resource type for logging
Currently, OSC plugin for logging only supports security group as
a loggable resource. This patch aims to add 'firewall_group' as a
supported resource type.

Co-Authored-By: Van Hung Pham <HungPV@vn.fujitsu.com>
Depends-On: Ie10063197f02679e987e87cb4852f5230a02f76d
Change-Id: I2ac92004c2ad3769c9749e131718a8ef0003c4bd
Partial-Bug: #1720727
2018-08-23 10:32:23 +00:00
chenyaguang
2bff68649b Set or unset port pair group failed
Set or unset port pair for port pair group failed
because the type of 'existing' is wrong

Change-Id: I198e745fccff76184d9813805d1c1915aff5a273
Closes-Bug: #1762884
2018-04-18 17:29:11 +08:00
Jens Harbott
bcffe1fce7 Fix list bgp speaker by agent ID
The arg is called "agent", not "agent_id".

Change-Id: I5dd524137202a5411451e775c7ca5d6748dc6e7a
Closes-Bug: 1762488
2018-04-09 17:28:27 +00:00
Jens Harbott
dd365401ab Remove bogus ID column from ListRoutesAdvertisedBySpeaker
The routes shown by ListRoutesAdvertisedBySpeaker only contain the
destination and the next_hop fields, so drop the ID column that is
always empty anyway.

Change-Id: Idc19ebb55d8eb30e61fd1f9101512279e00b6f0b
2018-03-06 11:32:05 +00:00
Akihiro Motoki
4914b4e3b5 Consume column utils from osc-lib
get_column_definitions() and get_columns() in neutronclient.osc.utils
have been migrated to osc-lib 1.8.0 (or later), so we no longer need
to maintain our own versions. This commit consumes osc-lib versions.

The workaround in firewallrule.py is no longer needed with
osc-lib 1.8.0 as the original bug has been fixed in osc-lib 1.8.0
(osc-lib commit 8cbdcde6076fa1df40e00d3e16bf140a59aa6273).

Change-Id: I4b9243b0fdb4ca744cc3f85371cb066a456f1d42
2018-01-29 11:07:22 +09:00
Thomas Morin
288aa63756 osc, bgpvpn: add support for 'local_pref' BGPVPN attribute
This change adds support for the 'local_pref' attribute of
the BGPVPN resource.

Change-Id: I330a18212d4d68faf79ef5a16e304bc3406ce7ff
Partially-Implements: blueprint routes-control
2018-01-23 16:00:07 +01:00
Édouard Thuleau
0e61b3ba1c Add commands to support BGP VPN route control new API extension
Networking-bgpvpn API extension [0] brings new API calls. That patch
adds command to OSC CLI to support them. It does not implement all the
API extension, still missing new router attribute 'advertise_extra_routes' and
the BGP VPN 'local_pref' attribute.

[0] https://developer.openstack.org/api-ref/network/v2/index.html#port-associations

Change-Id: I45a160b0caec534d517b103db91dc738c006978b
Partially-Implements: blueprint routes-control
Depends-On: I263e1ee6cf4e1a91be91a4a78f4a160f64d33cc6
2018-01-22 10:16:58 +01:00
Zuul
357787f523 Merge "Add correlation type "nsh" to both PPs and PCs" 2018-01-18 22:36:47 +00:00
Zuul
d0c42eb023 Merge "VNI support in BGPVPN CLI" 2018-01-18 22:23:32 +00:00
Deepthi V V
5fddd71452 VNI support in BGPVPN CLI
Changes to support VNI attribute through BGPVPN CLIs

Change-Id: I1f828ef965d5b117539b88a290e2b9b966016336
Partial-Bug: #1590908
Depends-On: I3d47000bb0ad8434f88d016acb5b05fb7142e47a
2018-01-16 12:12:53 +05:30
Cao Xuan Hoang
dd044bd92e Add VPNaaS commands for OSC plugin
Closes-Bug: 1669252
Change-Id: I447f5c50725fc0d9d8a1574ad5e28772f472fba9
2018-01-15 09:44:03 +07:00
Yushiro FURUKAWA
c569d985c4 Add Logging commands for OSC plugin
This commit supports Logging CLI as OSC plugin[1].
[1] https://bugs.launchpad.net/neutron/+bug/1468366

Depends-On: Ib8668dd25ee7c5000a6dafcc7db3dbc33ad190be
Partially-implements: blueprint security-group-logging
Change-Id: If9a5e0e3958ea32f4c0d3573efcb3ac4101c63a6
2018-01-11 00:26:52 +00:00
Zuul
ecc4bbf650 Merge "Added 'tap_enabled' parameter for Port-pair-group" 2017-12-03 17:48:50 +00:00
Zuul
b270022e9c Merge "Add Service Graphs networking-sfc resource" 2017-12-02 23:54:41 +00:00
Zuul
b709c3754c Merge "SFC plugin: preserve chain order in set/unset commands" 2017-12-01 23:20:38 +00:00
Zuul
6ecc8fefad Merge "SFC plugin: fix dictionary parameters" 2017-12-01 23:14:29 +00:00
Zuul
759c1aad39 Merge "SFC plugin: fix port chain set commands" 2017-12-01 23:12:39 +00:00