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

ACI L4-L7 Services (DCNE-155) #186

Open
wants to merge 127 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
67f8cae
feat: l4l7 service graph template
timcragg Aug 4, 2021
a0b91c7
feat: l4l7 sgt integration test
timcragg Aug 4, 2021
80e2b69
feat: L4-L7 device
timcragg Aug 4, 2021
9b36a5c
Update main.yml
timcragg Aug 4, 2021
9b4d653
feat: L4-L7 device integration test
timcragg Aug 4, 2021
881602a
feat: L4-L7 concrete device
timcragg Aug 4, 2021
1e25828
Update main.yml
timcragg Aug 4, 2021
17ea490
feat: L4-L7 concrete device integration test
timcragg Aug 4, 2021
9306edf
Update aci_l4l7_concrete_device.py
timcragg Aug 4, 2021
fe33110
feat: L4-L7 concrete interface
timcragg Aug 5, 2021
8d26edf
feat: l4-l7 concrete interface integration test
timcragg Aug 5, 2021
431eb7a
feat: L4-L7 logical interface
timcragg Aug 6, 2021
b0e8d25
feat: L4-L7 logical interface integration test
timcragg Aug 6, 2021
96878d9
feat: L4-L7 concrete interface attach
timcragg Aug 6, 2021
fac5806
Update aci_l4l7_concrete_interface_attach.py
timcragg Aug 6, 2021
4c5047b
feat: L4-L7 concrete intf attach integration test
timcragg Aug 6, 2021
01715ff
feat: L4-L7 dev selection policy
timcragg Aug 6, 2021
7aca91a
feat: L4-L7 dev selection policy integration test
timcragg Aug 6, 2021
b0c08bd
Create aliases
timcragg Aug 9, 2021
84341d5
Rename tests/integration/targets/aci_l4l7_concrete_device/main.yml to…
timcragg Aug 9, 2021
3697cc6
Create aliases
timcragg Aug 9, 2021
bb4f584
Rename tests/integration/targets/aci_l4l7_concrete_interface/main.yml…
timcragg Aug 9, 2021
e8a56d0
Create aliases
timcragg Aug 9, 2021
bf33521
Rename tests/integration/targets/aci_l4l7_concrete_interface_attach/m…
timcragg Aug 9, 2021
4d30e4a
Create aliases
timcragg Aug 9, 2021
30bc0e7
Rename tests/integration/targets/aci_l4l7_device/main.yml to tests/in…
timcragg Aug 9, 2021
6a0752f
Create aliases
timcragg Aug 9, 2021
1face5a
Rename tests/integration/targets/aci_l4l7_device_selection_policy/mai…
timcragg Aug 9, 2021
8d3a596
Create aliases
timcragg Aug 9, 2021
cb04811
Rename tests/integration/targets/aci_l4l7_logical_interface/main.yml …
timcragg Aug 9, 2021
d94d41c
Create aliases
timcragg Aug 9, 2021
c46447d
Rename tests/integration/targets/aci_l4l7_service_graph_template/main…
timcragg Aug 9, 2021
2c3e363
feat: L4-L7 device selection device binding
timcragg Aug 9, 2021
de7363d
feat: L4-L7 device selection device integration
timcragg Aug 9, 2021
5c81e07
Create aliases
timcragg Aug 9, 2021
48a1d0f
feat: L4-L7 device selection policy context
timcragg Aug 10, 2021
ce9abde
feat: L4-L7 service graph node
timcragg Aug 10, 2021
a7950c4
Update aci_l4l7_service_graph_template_node.py
timcragg Aug 10, 2021
4f7b7da
Update aci_l4l7_service_graph_template_node.py
timcragg Aug 10, 2021
a7adefd
Update aci_l4l7_service_graph_template_node.py
timcragg Aug 10, 2021
7af7a51
feat: L4-L7 Service Graph Node integration test
timcragg Aug 10, 2021
588559b
Create aliases
timcragg Aug 10, 2021
e404090
feat: L4-L7 service graph term nodes
timcragg Aug 10, 2021
29f4e9f
feat: L4-L7 SGT term node integration test
timcragg Aug 10, 2021
1bc9f72
Create aliases
timcragg Aug 10, 2021
f05d250
feat: L4-L7 Abs Connection
timcragg Aug 10, 2021
5a97118
Update aci_l4l7_service_graph_template_abs_conn.py
timcragg Aug 11, 2021
f82cdc7
feat: L4-L7 Service Graph Abs Connection Integration Test
timcragg Aug 11, 2021
56ce156
Create aliases
timcragg Aug 11, 2021
904fed6
feat: L4-L7 Abs Connection Conns
timcragg Aug 11, 2021
a2fd009
feat: L4-L7 SGT connection conns integration test
timcragg Aug 11, 2021
f496075
Create aliases
timcragg Aug 11, 2021
bf901c7
feat: L4-L7 Service Graph Func Conn
timcragg Aug 11, 2021
bed30dc
feat: L4-L7 Service Graph Func Conn Integration Test
timcragg Aug 11, 2021
fadaf8a
Create aliases
timcragg Aug 11, 2021
ee98461
feat: L4-L7 policy based redirect
timcragg Aug 12, 2021
f80ba16
feat: L4-L7 PBR Policy Integration Test
timcragg Aug 12, 2021
cf87e80
Create aliases
timcragg Aug 12, 2021
841b08a
feat: L4-L7 PBR destination
timcragg Aug 13, 2021
aa0cc9c
feat: L4-L7 PBR destination integration test
timcragg Aug 13, 2021
c5c49b9
Create aliases
timcragg Aug 13, 2021
8645399
feat: L4-L7 redirect health group
timcragg Aug 13, 2021
19fe744
feat: L4-L7 PBR dest health group
timcragg Aug 25, 2021
d5431de
fix: minor sanity corrections
timcragg Aug 25, 2021
3c21998
fix: minor docs correction
timcragg Aug 25, 2021
8868842
fix: minor docs correction
timcragg Aug 25, 2021
408d2a5
fix: minor docs correction
timcragg Aug 25, 2021
856a051
fix: minor docs correction
timcragg Aug 25, 2021
f40404d
fix: minor docs correction
timcragg Aug 25, 2021
e603ea3
fix: minor fixes
timcragg Aug 25, 2021
7129071
fix: minor fixes
timcragg Aug 25, 2021
01cb859
feat: sla mon policy
timcragg Aug 26, 2021
d7c3047
feat: L4-L7 PBR SLA policy binding
timcragg Aug 26, 2021
14b9c0d
fix: minor corrections
timcragg Aug 26, 2021
1835de2
fix: rename files
timcragg Aug 26, 2021
bd6d216
feat: L4-L7 dev sel context to bd
timcragg Aug 26, 2021
497b1fb
fix: minor bugfix
timcragg Aug 26, 2021
1da519f
L4-L7 dev sel to log intf
timcragg Aug 31, 2021
2a1ced8
chore: minor readability changes
timcragg Aug 31, 2021
bfe1a6d
feat: l4l7 dev sel log intf inteegration test
timcragg Aug 31, 2021
e0e2abe
feat: l4-l7 dev sel to redir pol
timcragg Aug 31, 2021
fc7128c
l4l7 dev sel erdir pol integration test
timcragg Aug 31, 2021
c435a1d
chore: minor comment correction
timcragg Aug 31, 2021
74a4ae8
fix: additional idempotence tests
timcragg Sep 1, 2021
ccaaf24
update doc
timcragg Sep 1, 2021
7d4fc00
fix docs
timcragg Sep 1, 2021
47334fc
fix integration test
timcragg Sep 1, 2021
709b371
fix integration test
timcragg Sep 1, 2021
9557dc7
fix integration test
timcragg Sep 1, 2021
883ecd0
fix integration test
timcragg Sep 1, 2021
f588a99
minor fix
timcragg Sep 1, 2021
46b82de
update integration tests
timcragg Sep 1, 2021
5cd72d5
Update aci_l4l7_service_graph_template.py
timcragg Sep 1, 2021
a43a453
fix integration test
timcragg Sep 1, 2021
a71a7f5
fix integration test
timcragg Sep 1, 2021
e1a05ac
fix integration test
timcragg Sep 1, 2021
cc0999c
fix integration test
timcragg Sep 1, 2021
e56e827
fix integration test
timcragg Sep 1, 2021
922aff2
fix: modifications for v3 integration tests
timcragg Oct 5, 2021
b94af1f
fix: update aliases
timcragg Sep 21, 2021
b1679e3
fix: update aliases
timcragg Sep 21, 2021
6a61b54
fix: correct integration tests
timcragg Oct 5, 2021
5d2bd1f
fix: integration test fixes
timcragg Oct 6, 2021
fb746c7
fix: correct documentation format
timcragg Oct 28, 2021
af62656
fix: Correct documentation format
timcragg Oct 28, 2021
c4ea5a0
fix: Correct documentation
timcragg Oct 28, 2021
b942baf
fix: Sanity check fixes
timcragg Oct 28, 2021
d360749
fix: Sanity check fixes
timcragg Oct 28, 2021
086841f
fix: Update SLA monitoring module
timcragg Apr 11, 2023
1f3c8d0
fix: Update integration test
timcragg Apr 11, 2023
29ac653
fix: Module updates
timcragg Apr 12, 2023
061506d
fix: Sanity fixes
timcragg Apr 14, 2023
7ae3923
fix: Apply black formatting
timcragg Apr 14, 2023
d7a7bb6
fix: Bugfix
timcragg Apr 14, 2023
32cc035
fix: Update integration tests
timcragg Apr 14, 2023
7671c0e
fix: Integration test updates
timcragg Apr 18, 2023
041c729
feat: Re-structure modules
timcragg Jun 14, 2023
d17372d
fix: Bugfixes
timcragg Jun 19, 2023
0bd6eba
fix: minor update
timcragg Jun 19, 2023
ef65850
fix: Bugfixes
timcragg Jun 20, 2023
b4023ca
fix: Minor corrections
timcragg Jun 20, 2023
13dfec3
chore: Rebase constants
timcragg Jun 23, 2023
22df58f
chore: update integration tests
timcragg Jun 23, 2023
68144b3
fix: sanity fixes
timcragg Jun 27, 2023
966aa4d
chore: Update example
timcragg Oct 11, 2023
2c8ec69
[ignore] Rebased to current master Mar 13 2024.
anvitha-jain Mar 13, 2024
5e164a7
[ignore] Removed env folder.
anvitha-jain Mar 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions plugins/module_utils/aci.py
Original file line number Diff line number Diff line change
Expand Up @@ -1732,3 +1732,19 @@
except KeyError:
# Connection error
self.fail_json(msg="Connection failed for {url}. {msg}".format_map(info))

def delete_config_request(self, path):
self._config_request(path, "absent")
self.result["changed"] = True

Check warning on line 1738 in plugins/module_utils/aci.py

View check run for this annotation

Codecov / codecov/patch

plugins/module_utils/aci.py#L1737-L1738

Added lines #L1737 - L1738 were not covered by tests

def get_config_request(self, path):
self._config_request(path, "query")
return self.imdata

Check warning on line 1742 in plugins/module_utils/aci.py

View check run for this annotation

Codecov / codecov/patch

plugins/module_utils/aci.py#L1741-L1742

Added lines #L1741 - L1742 were not covered by tests

def _config_request(self, path, state):
reset_url = self.url
reset_state = self.params["state"]
self.params["state"] = state
self.request(path)
self.url = reset_url
self.params["state"] = reset_state

Check warning on line 1750 in plugins/module_utils/aci.py

View check run for this annotation

Codecov / codecov/patch

plugins/module_utils/aci.py#L1745-L1750

Added lines #L1745 - L1750 were not covered by tests
10 changes: 10 additions & 0 deletions plugins/module_utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,3 +432,13 @@
"yellow",
"yellow_green",
]

NODE_TYPE_MAPPING = {"tier_2": "tier-2-leaf", "remote": "remote-leaf-wan", "virtual": "virtual", "unspecified": "unspecified"}

SPAN_DIRECTION_MAP = {"incoming": "in", "outgoing": "out", "both": "both"}

HTTP_VERSIONS_MAPPING = {"1.0": "HTTP10", "1.1": "HTTP11"}

L4L7_FUNC_TYPES_MAPPING = {"go_to": "GoTo", "go_through": "GoThrough", "l1": "L1", "l2": "L2"}

L4L7_HASH_ALGORITHMS_MAPPING = {"source_ip": "sip", "destination_ip": "dip", "ip_and_protocol": "sip-dip-prototype"}
Loading
Loading